package com.joker.orange.domain.bo;

import com.joker.common.core.domain.BaseEntity;
import com.joker.common.core.validate.AddGroup;
import com.joker.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;


/**
 * 支付管理业务对象 t_pay_config
 *
 * @author Joker
 * @date 2024-07-31
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class PayConfigBo extends BaseEntity {

    /**
     * 唯一标识
     */
    @NotNull(message = "唯一标识不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 支付平台名称
     */
    @NotBlank(message = "支付平台名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String payName;

    /**
     * AppId
     */
    @NotBlank(message = "AppId不能为空", groups = { AddGroup.class, EditGroup.class })
    private String appId;

    /**
     * 密钥
     */
    @NotBlank(message = "密钥不能为空", groups = { AddGroup.class, EditGroup.class })
    private String secret;

    /**
     * 支付地址
     */
    @NotBlank(message = "支付地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String payUrl;

    /**
     * 异步通知
     */
    @NotBlank(message = "异步通知不能为空", groups = { AddGroup.class, EditGroup.class })
    private String notifyUrl;

    /**
     * 支付类型（0-支付宝、1-微信）
     */
    private String payType;

    /**
     * 开关（0-启用、1-停止）
     */
    @NotBlank(message = "开关（0-启用、1-停止）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;


}
